home *** CD-ROM | disk | FTP | other *** search
- Path: news.ust.hk!ee_ckmaa
- From: ee_ckmaa@uxmail.ust.hk (Chan Ka Ming)
- Newsgroups: comp.lang.c
- Subject: memory allocation in Visual C++
- Date: 10 Jan 1996 04:04:23 GMT
- Organization: The Hong Kong University of Science and Technology
- Message-ID: <4cvds8$4pt@news.ust.hk>
- NNTP-Posting-Host: ustsu26.ust.hk
- X-Newsreader: TIN [version 1.2 PL2]
-
- I'm writting a program which deals with a large amount of data. It's a
- 16 bit program. Why I cannot allocate automatic arrays in a
- function as local variables which in total occupies more than 64k? I've set the
- memory model to "large" , though.
-
- i.e.
-
- main() {
-
- float a[88][88]; <----- each of them below 64k; but total of 3 is
- float b[88][88]; <----- larger than 64k .
- float c[88][88];
-
- // ......
-
- }
-
- --
-
- If an ideal can be reached easily it no longer is an ideal.
- ka ming
-
-